using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.OleDb;
namespace prDe_Tai.TruyXuat
{
    class LayDuLieuTheoChuDe
    {
        LayDuLieu laydulieu = new LayDuLieu();
        public DataSet laydulieutheochude(string loaiphanmem, string chude)
        {
            OleDbCommand com = new OleDbCommand();
            com.CommandType=CommandType.Text;
            com.CommandText="select tenphanmem,hinhtrongimagelist from DanhSachPhanMem where loaiphanmem=@loaiphanmem and chude=@chude";
            com.Parameters.Add("@loaiphanmem", OleDbType.BSTR).Value = loaiphanmem;
            com.Parameters.Add("@chude", OleDbType.BSTR).Value = chude;
            DataSet ds=laydulieu.laydulieukhicothamso(com);
            return ds;
        }
       
    }
}
